<?php
/**
 * @Notes:【】
 * @Date: 2022-08-06 18:39
 */

namespace App\Controller\Ocean;

use App\Middleware\AuthTokenMiddleware;
use App\Service\Ocean\OceanRankingService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Middleware;
use Yj\Apidog\Annotation\ApiController;
use Yj\Apidog\Annotation\PostApi;


/**
 * @Notes:【】
 * @Date: 2022-08-08 23:51
 * @ApiController(prefix="ocean/ranking")
 * @Middleware(AuthTokenMiddleware::class)
 */
class OceanRankingController extends BaseController
{
    /**
     * @Inject()
     * @var OceanRankingService
     */
    protected $oceanRankingService;

    /**
     * @PostApi(path="lists")
     */
    public function lists()
    {
        $user_id = $this->getUid();
        $data = $this->oceanRankingService->lists($user_id);
        _SUCCESS($data);
    }


}